<?php
    header("Content-Type:application/json");

	$conn = mysqli_connect('127.13.30.2','admin3R8pGpB','Vd8yi-7fciGM','wytweb');
	$sql="SET NAMES UTF8";
	mysqli_query($conn,$sql);

	@$did=$_REQUEST['did'];
	if(!isset($did)){
		echo '{}';
		return;
	}

	$sql="SELECT img_lg,name,price,material,detail FROM kf_dish WHERE did='$did'";
	$result=mysqli_query($conn,$sql);
	$row=mysqli_fetch_assoc($result);

	if($row){
		echo json_encode($row);
	}else{
		echo '{}';
	}
?>